<template>
    <div class="box">
        <div class="allyear">年度榜单</div>
        <div class="s-boardWarp">
                <div class="boardCard" v-for="(v,i) in arr" :key="i" >
                    <div class="content">
                        <div class="yearss">2020年度</div>
                        <div class="title">
                            <span>{{v.name}}</span>
                            <img src="https://s0.meituan.net/bs/myfe/canary/file/asgard/images/board/arrow-right.png" alt="">
                        </div>
                        <!-- <div class="time">更新于2021年09月09日</div> -->
                        <ul class="list">
                            <li v-for="(v,i) in arr[i].movies" :key="i">
                                <div class="list-l">
                                    <div>{{v.rank}}</div>
                                    <!-- <img :src="v.img|fliterImg" alt=""> -->
                                    <span>{{v.nm}}</span>
                                </div>
                            </li>
                        </ul>
                    </div>
                </div>
            </div>
    </div>
</template>

<script>
import getLink from "@/api/getLink.js";

export default {
    data() {
        return {
            arr:[]
        }
    },
     mounted() {
        getLink("/api/aggregation2").then((res)=>{
            this.arr= res.data;
        })
    },

}
</script>

<style scoped>
.box{
    background: #fff;
}
.allyear{
    font-size: .34rem;
    color: #333;
    letter-spacing: 0;
    line-height: .34rem;
    padding: .3rem 0;
    padding-left: .3rem;
}
 .s-boardWarp{

    list-style: none;
    overflow: hidden;
    white-space: nowrap;
    overflow-x: scroll;
    vertical-align: middle;
    box-sizing: border-box;
    width: 100%;
}
.boardCard{
    list-style: none;
    white-space: nowrap;
    border-radius: .24rem;
    width: 3.1rem;
    height: 2.86rem;
    position: relative;
    margin-right: .2rem;
    color: #fff;
    background-position: 0 100%;
    flex-shrink: 0;
    display: inline-block;
    /* margin-left: .3rem; */
    background-image: linear-gradient(to right, rgb(64, 55, 35), rgba(64, 55, 35, 0.3));
}
.boardCard:first-child{
    margin-left: 0.3rem
}
.content{
    color: #fff;
    z-index: 3;
    margin: 0 .14rem 0 .24rem;
    position: relative;
}
.yearss{
    font-weight: 400;
    opacity: .7;
    font-family: PingFangSC-Regular;
    font-size: .22rem;
    color: #fff;
    letter-spacing: 0;
    line-height: .22rem;
    margin-top: .29rem;
}
.content .title{
    font-size: .3rem;
    line-height: .3rem;
    font-weight: 500;
    font-family: PingFangSC-Medium;
    color: #fff;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    margin-top: .16rem;
}
.title span{
    font-size: .32rem;
    font-weight: 500;
    font-family: PingFangSC-Medium;
    color: #fff;
    letter-spacing: 0;
} 
.title img{
    color: #fff;
    letter-spacing: 0;
    border: 0;
    display: inline-block;
    background: none;
    height: .2rem;
    width: .2rem;
    margin-left: .08rem;
    margin-top: .02rem;
    
}
.time{
    font-weight: 400;
    opacity: .7;
    font-family: PingFangSC-Regular;
    font-size: .22rem;
    letter-spacing: 0;
    height: .22rem;
    line-height: .22rem;
    margin-top: .16rem;
    color: #fff;
}
.list{
    overflow: hidden;
    white-space: nowrap;
    overflow-x: scroll;
    vertical-align: middle;
    box-sizing: border-box;
    width: 100%;
    margin-top: .6rem;
    font-family: PingFangSC-Regular;
    font-size: .22rem;
    color: #fff;
    letter-spacing: 0;
    line-height: .22rem;
    margin-bottom: 0;
}
.list li{
    font-size: .22rem;
    color: #fff;
    letter-spacing: 0;
    line-height: .22rem;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: .16rem;
    display: flex;
    align-items: center;
    width: 100%;
    opacity: .7;
}
.list-l{
    display: flex;
    /* justify-content: start; */
    align-items: center;
    flex-grow: 1;
    flex-shrink: 1;
    width: 1rem;
    height: 100%;
}
.list-l div{
    font-size: .26rem;
    color: #fff;
    letter-spacing: 0;
    list-style: none;
    margin-right: .16rem;
    width: .14rem;
}
.list-l img{
    width: 0.52rem;
    height: 0.72rem;

    font-size: .26rem;
    color: #fff;
    letter-spacing: 0;
    list-style: none;
    border: 0;
    display: inline-block;
    background: none;
    border-radius: .08rem;
    height: 100%;
}
.list-l span{
    color: #fff;
    letter-spacing: 0;
    list-style: none;
    /* margin-left: .16rem; */
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    word-break: break-all;
    opacity: .7;
}
::-webkit-scrollbar {
     width: 0 !important;
   }
</style>
